#pragma once

#include "../main.h"
#include <modbus.h>

int mb_slave_init(dev_cfg_t *cfg);
void mb_slave_deinit(void);

void mb_write(uint16_t *buf, int addr, int len);
void mb_read(int addr, int len, uint16_t *buf);
